package com.siyu.common.constant;

import com.siyu.common.config.prewarn.PrewarnConfig;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class PrewarnConstants {

    public static  String URL_ADS;

    @Autowired
    private PrewarnConfig prewarnConfig;

    @PostConstruct
    public void initialize() {
        URL_ADS = prewarnConfig.getUrlads();
    }

    public static String getUrlAds() {
        return URL_ADS;
    }


}
